<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>后台登陆</title>
<link rel="stylesheet" type="text/css" href="${base}/css/admin/global.css" />
<link rel="stylesheet" type="text/css" href="${base}/css/admin/login.css" />
<script src="${base}/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
	function changeImag(){
		$("#img").attr('src', '${base}/CheckCode.svl?' + Math.floor(Math.random()*100) ); 
	}
	
	$(document).ready(function(){
		changeImag();
	});
	
	function subLogin(){
		var account = $("#account").val();
		if($.trim(account)==""){
			$("#msg").text("用户名不能为空!");
			return false;
		}
		var password = $("#password").val();
		if($.trim(password)==""){
			$("#msg").text("密码不能为空!");
			return false;
		}
		var checkCode = $("#checkCode").val();
		if($.trim(checkCode)==""){
			$("#msg").text("请输入验证码!");
			return false;
		}
		return true;
	}
</script>
	</head>
	<body>
		<DIV class="abody">
			<div class="login">
				<table border="0" cellpadding="0" cellspacing="0" width="100%"
					height="100%">
					<tr>
						<td style="width: 280px;"></td>
						<td style="width: 369px;" valign="top">
							<div style="padding-top: 65px; padding-left: 20px;">
								<form action="${base}/adminLogin/Submit.do" method="post" id="form1"
									onsubmit="return subLogin();">
									<table border="0" cellpadding="0" cellspacing="0"
										class="loginform">
										<tbody>
											<tr>
												<td>
													<b class="username"></b>
												</td>
												<td>
													<input type="text" class="loginbox long" name="account" id="account" value="" />
												</td>
											</tr>
											<tr>
												<td>
													<b class="password"></b>
												</td>
												<td>
													<input type="password" class="loginbox long" name="password" id="password" value="" />
												</td>
											</tr>
											<tr>
												<td>
													<b class="code"></b>
												</td>
												<td>
													<input type="text" class="loginbox short" name="checkCode" id="checkCode" value="" />
												</td>
											</tr>
											<tr>
												<td></td>
												<td>
													<a href="javascript:changeImag();" title="刷新">
														<img width="190px" height="40px" id="img"/>
													</a>
												</td>
											</tr>
											<tr>
												<td colspan="2">
													<div style="padding-left: 50px;">
														<input type="submit" class="login_but" value="" onclick="subLogin();" />
													</div>
												</td>
											</tr>
										</tbody>
									</table>
								</form>
								<div class="showmsg" style="padding: 10px; padding-left: 60px;">
									<span id="msg">
									<#list actionMessages+actionErrors as msg>
									${msg}
									</#list></span>
								</div>
							</div>

						</td>
					</tr>
				</table>
			</div>
		</DIV>
	</body>
</html>
